﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MantenimientoDeUsuariosFinales.aspx.cs" Inherits="Web_Guia_Digital_Georeferenciada.MantenimientoDeUsuariosFinales" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="lblTitulo" runat="server" Font-Size="X-Large" Text="Formulario de registro de usuarios"></asp:Label>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="LabelError" runat="server"></asp:Label>
    <br />
    <br />
    <asp:Label ID="lblNombreUsu" runat="server" Text="Nombre de usuario"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="txtNomUsuario" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:RequiredFieldValidator ID="val1" runat="server" ControlToValidate="txtNomUsuario" ErrorMessage="Debe ingresar nombre de usuario" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblPass" runat="server" Text="Password"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtPass" runat="server" Width="128px"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:RequiredFieldValidator ID="val2" runat="server" ControlToValidate="txtPass" ErrorMessage="Debe ingresar password" ForeColor="Red"></asp:RequiredFieldValidator>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
    <br />
    <asp:Label ID="lblNombre" runat="server" Text="Nombre"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <asp:TextBox ID="txtNombre" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:RequiredFieldValidator ID="val3" runat="server" ControlToValidate="txtNombre" ErrorMessage="Debe ingresar su nombre" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblApellido" runat="server" Text="Apellido"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="txtApellido" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:RequiredFieldValidator ID="val4" runat="server" ControlToValidate="txtApellido" ErrorMessage="Ingrese su apellido" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblDireccion" runat="server" Text="Direccion"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
    <asp:TextBox ID="txtDireccion" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:RequiredFieldValidator ID="val5" runat="server" ControlToValidate="txtDireccion" ErrorMessage="Ingrese su direccion" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblCiudad" runat="server" Text="Ciudad"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:DropDownList ID="DDLCiudades" runat="server" DataSourceID="SqlDataSource1" DataTextField="CiuNombre" DataValueField="CiuId">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:con3 %>" SelectCommand="SELECT [CiuNombre], [CiuId] FROM [Ciudades]"></asp:SqlDataSource>
<br />
    <br />
    <asp:Label ID="lblMail" runat="server" Text="Correo Electronico"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
    <asp:TextBox ID="txtMail" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:RequiredFieldValidator ID="val6" runat="server" ControlToValidate="txtMail" ErrorMessage="Ingrese su correo electronico" ForeColor="Red"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="val9" runat="server" ControlToValidate="txtMail" ErrorMessage="El formato de correo es xxx@xxxx.xxx" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <br />
    <asp:Label ID="lblSexo" runat="server" Text="Sexo"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;
    <asp:DropDownList ID="DDLSexo" runat="server">
        <asp:ListItem>Hombre</asp:ListItem>
        <asp:ListItem>Mujer</asp:ListItem>
    </asp:DropDownList>
    <br />
    <br />
    <asp:Label ID="lblTelefono" runat="server" Text="Telefono"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="txtTelefono" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:RequiredFieldValidator ID="val7" runat="server" ControlToValidate="txtTelefono" ErrorMessage="Ingrese su telefono" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <br />
    <asp:Label ID="lblFechaNac" runat="server" Text="Fecha de nacimiento"></asp:Label>
    &nbsp;&nbsp;<br />
    <br />
    &nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;<asp:Calendar ID="FechaNac" runat="server"></asp:Calendar>
    &nbsp;&nbsp;<br />
    <br />
&nbsp;<br />
    <br />
    <br />
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnRegistro" runat="server" Text="Registrarse" OnClick="Button1_Click" Width="76px" />
    &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button  ID="btnVolver" CausesValidation="false" runat="server" OnClick="Button2_Click" Text="Volver al inicio" Width="103px" />
    &nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnGuardarCambios" runat="server"  Text="Guardar cambios" Width="117px" OnClick="btnGuardarCambios_Click" />
&nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnBorrarUsuario" runat="server" Text="Borrar Usuario" Width="101px" OnClick="btnBorrarUsuario_Click" />
    <br />
    <br />
    <br />
&nbsp;
</asp:Content>
